<#include "/includes/header.ftl">

<script src='<@spring.url "/JS/storeadmin/listmystorecouponitem.js"/>' type="text/javascript"></script>		

<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
	<TD width="120" valign="top"><#include "/includes/leftbar.ftl"></TD>	
	<TD valign="top" width="90%">
	<#-- Main Content-->
		<table width="100%" border="0">
		  <tr>
		    <th colspan="7" align='center'>管理店铺-查看优惠券的赠券</th>
		  </tr>
		  <tr>
		    <th colspan="7" align='right'><hr></th>
		  </tr>
			<tr>
			  <th scope="row" nowrap><b>优惠券编号</b></th>
			  <th scope="row" nowrap><b>赠券编号</b></th>
			  <th nowrap><b>赠送日期</b></th>
			  <th nowrap><b>顾客</b></th>
			  <th nowrap><b>抽奖期号</b></th>
			  <#-------- this is used for 店铺联盟抽奖			  
			  <th nowrap><b>抽奖号码</b></th>
			  ------------------>
			</tr>
		  <tr>
		    <th colspan="7" align='right'><hr></th>
		  </tr>
			
			<#if couponItemList?has_content>
			<#list couponItemList as ci>
			<tr>
			  <th scope="row" nowrap>${ci.coupon.contentId}</th>
			  <th scope="row" nowrap>${ci.couponItemId}</th>
			  <th nowrap>${ci.createdDate?string("yyyy-MM-dd")}</th>
			  <th nowrap>${ci.user.nickName?default("No-NickName")}</th>
			  <th nowrap>${ci.issueId?default(-1)}</th>
			  <#-------- this is used for 店铺联盟抽奖			  
			  <th nowrap>
			  ${ci.lotteryNumber0?default("")}&nbsp;&nbsp;<#if ci.lotteryNumber1?has_content>${ci.lotteryNumber1?default("")}<br></#if>
			  ${ci.lotteryNumber2?default("")}&nbsp;&nbsp;<#if ci.lotteryNumber3?has_content>${ci.lotteryNumber3?default("")}<br></#if>
			  ${ci.lotteryNumber3?default("")}&nbsp;&nbsp;<#if ci.lotteryNumber5?has_content>${ci.lotteryNumber5?default("")}<br></#if>
			  ${ci.lotteryNumber6?default("")}&nbsp;&nbsp;<#if ci.lotteryNumber7?has_content>${ci.lotteryNumber7?default("")}<br></#if>
			  ${ci.lotteryNumber8?default("")}&nbsp;&nbsp;<#if ci.lotteryNumber9?has_content>${ci.lotteryNumber9?default("")}<br></#if>
			  </th>
			  ------------------>
			</tr>
			</#list>
			</#if>
			
			<#if store2Coupon?has_content>
				<FORM action='<@spring.url "/representmystorecouponitem.php"/>' method="POST">
			  <tr>
			    <th colspan="7" align='right'><hr></th>
			  </tr>
			  <tr bgcolor="yellow">
			    <th colspan="7" align='left' ><b>赠送优惠券</b></th>
			  </tr>
				<tr>
					<td colspan="7">
						<table>
							<tr>
								<TD WIDTH="1%" NOWRAP="TRUE" valign="top"><IMG src="IMAGES/COUPON/COUPON_DEFAULT.JPG" width="100" height="80"></TD>
								<td>
									<table>
										<tr><td align="right">编号：	</td><th scope="row" nowrap>${store2Coupon.content.contentId?default("No-ContentId")}</th></tr>
									  <tr><td align="right">名称：	</td><th nowrap>${store2Coupon.content.name?default("No-Name")}</th></tr>
									  <tr><td align="right">有效期：	</td><th nowrap>2007-12-12~2008-12-12</th></tr>
									  <tr><td align="right" nowrap>已赠数：	</td><th nowrap>500</th></tr>
									</table>
								</td>
								<td valign="top">${store2Coupon.content.shortDesc?default("Coupon No Short Description")}</td>
							</tr>
						  <tr>
						    <th colspan="7" align='right'><hr></th>
						  </tr>
						</table>
					</td>
				</tr>
			  <tr>
			    <th colspan="7" align='center'>
			    	<table><tr><td>
			    	<table>
							<INPUT type="hidden" id="userSysId" name="usid" value="-1"/>
							<INPUT type="hidden" name="csid" value="${store2Coupon.content.sysId}"/>
			    		<tr><td>顾客号码：</td><td><input id="userArbitraryId" type="text" name="userId" value="demo1@ungoo.com"></td></tr>
			    		<tr><td colspan="2">可以输入<font color="red">会员编号</font>、<font color="red">电话号码</font>、<font color="red">手机号码</font>、<font color="red">QQ号码</font>、<font color="red">电子邮件地址</font>来查找顾客</td></tr>
			    		<tr><td>&nbsp;</td></tr>
			    		<tr><td>赠券编号：</td><td><input type="text" name="couponItemId" value=""></td></tr>
			    		<tr><td>抽奖期号：</td><td><input type="text" name="issueId" value="88"></td></tr>
			    		<tr><td>赠送说明：</td><td><TEXTAREA cols="60" rows="6">oooooo</TEXTAREA></td></tr>
			    		<tr><td></td><td><input type="submit" name="submit" value="赠送" length="16"></td></tr>		    	
			    	</table>		
			    	</td>
			    	<td valign="top">&nbsp;&nbsp;
			    	</td>
			    	<td valign="top">
			    		<div id="usersimpleprofile">
								<TABLE>
									<TR>
										<TD colspan="3"><b>顾客信息</b><hr></TD>
									</TR>
									<TR>
										<TD   style="font:10px">可以输入<br><font color="red">会员编号</font>、<br><font color="red">电话号码</font>、<br><font color="red">手机号码</font>、<br><font color="red">QQ号码</font>、<br><font color="red">电子邮件地址</font><br>来查找顾客</TD>
									</TR>
								</TABLE>	
			    		</div>
			    	</td>
			    	</table>
			    </th>
			  </tr>
			  <tr bgcolor="yellow">
			    <th colspan="7" align='left' ><b>赠送优惠券</b></th>
			  </tr>
				</FORM>
			</#if>
  </table>	
	<#-- /Main Content-->
	</TD>	
	<TD valign="top"><#include "/includes/rightbar.ftl"></TD>
</TR>
</TABLE>

<#include "/includes/footer.ftl">